import Vue from 'vue'
import App from './App.vue'

// 全局组件注册
    import TypeNav from '@/components/TypeNav'
    import Carsousel from '@/components/Carousel'
    import Pagination from '@/components/Pagination'
    //插入组件(组件名字+文件名字)
    Vue.component(TypeNav.name,TypeNav)
    Vue.component(Carsousel.name,Carsousel)
    Vue.component(Pagination.name,Pagination)
  //引入路由
  import router from '@/router'
  //引入仓库
  import store from '@/store'

  //引入api
  import '@/mock/mockServer'
  import "swiper/css/swiper.css"

Vue.config.productionTip = false
new Vue({
  render: h => h(App),
  //全局总线
  beforeCreate(){
    Vue.prototype.$bus = this
  },
  //注册路由:KV一致
  router,
  //注册仓库
  store
}).$mount('#app')
